// getters 统一导出每一个vuex的state数据
const getters = {
    role: state => state.user.role,
    user: state => state.user.user,
    auth: state => state.user.auth,
    routes: state => state.user.routes,
    isCollapse: state => state.tab.isCollapse,
    updateAvatarApi: state => state.api.updateAvatarApi,
}

export default getters;